const crypto = require('crypto');

const md5password = (password) => {
    //采用哪一种加密
  const md5 = crypto.createHash('md5');
   
  //将对象转换
  const result = md5.update(password).digest('base64');
 
  return result;
}

module.exports = md5password;
